import request from '@/utils/myrequest'

// 初始化列表
export function getList(kvs) {
  return request({
    url: '/cms/CheckHistory/GetList',
    method: 'get',
    kvs
  })
}

// 获取下拉框数据
export function getSelect(kvs) {
  return request({
    url: '/cms/Common/GetEnumList',
    method: 'get',
    kvs
  })
}

// 表单状态
export function getFormStatusList(kvs) {
  return request({
    url: '/cms/CheckHistory/GetFormStatusList',
    method: 'get',
    kvs
  })
}

// 表单结果
export function getFormResult(kvs) {
  return request({
    url: '/cms/CheckHistory/GetFormStatus',
    method: 'get',
    kvs
  })
}

// 保存
export function doValied(kvs) {
  return request({
    url: '/cms/CheckFormItemsResult/Update',
    method: 'POST',
    kvs
  })
}

// 动态获取表单项
export function getItemListById(kvs) {
  return request({
    url: '/cms/CheckFormItemsResult/GetItemListById',
    method: 'get',
    kvs
  })
}

// 详情
export function getDetails(kvs) {
  return request({
    url: '/cms/CheckFormItemsResult/GetSampleItemListById',
    method: 'get',
    kvs
  })
}

// 删除
export function doDelete(kvs) {
  return request({
    url: '/cms/CheckHistory/Delete',
    method: 'POST',
    kvs
  })
}

// 强制删除
export function doForceDelete(kvs) {
  return request({
    url: '/cms/CheckHistory/ForceDelete',
    method: 'POST',
    kvs
  })
}
// 生成动态表单
export function doAdd(kvs) {
  return request({
    url: '/cms/CheckHistory/Add',
    method: 'POST',
    kvs
  })
}
